package com.jackeysun.app_widget

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.jackeysun.app_widget.databinding.ActivityMain3Binding
import com.jackeysun.app_widget.databinding.ActivityMain4Binding
import java.io.IOException

class MainActivity4 : AppCompatActivity() {

    private val PIC_DIR = "pictures"

    lateinit var mBinding: ActivityMain4Binding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = ActivityMain4Binding.inflate(layoutInflater)
        setContentView(mBinding.root)

        try {
            mBinding.intensifyImage.setImage(assets.open(PIC_DIR + "/building.jpg"))
        } catch (e: IOException) {
            e.printStackTrace()
        }
    }
}